﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    class Customer
    {
        private int id;
        private string name;
        private int age;

        public Customer(int age)
        {
            SetAge(age);
        }
        
        public int GetAge()
        {
            return this.age;
        }

        public void SetAge(int age)
        {
            if (age > 18)
            {
                this.age = age;
            }
            else
            {
                this.age = 0;
            }
        }

    }
}
